import 'package:get/get.dart';
import 'package:flutter_widgets_pc/config/kq_global.dart';
import 'package:flutter_widgets_pc/pages/common/file_preview/view.dart';
import 'package:flutter_widgets_pc/pages/common/img_preview/view.dart';
import 'package:flutter_widgets_pc/widgets/imageBox/kq_image_box.dart';
import 'package:flutter_widgets_pc_example/pages/demo/bread_crumbs_demo_page.dart';
import 'package:flutter_widgets_pc_example/pages/demo/chart/chart_demo.dart';
import 'package:flutter_widgets_pc_example/pages/demo/chart/pie_chart_demo.dart';
import 'package:flutter_widgets_pc_example/pages/demo/drawer_demo_page.dart';
import 'package:flutter_widgets_pc_example/pages/demo/kq_selectable_grid_view_demo.dart';
import 'package:flutter_widgets_pc_example/pages/demo/pull_down_menu_page.dart';
import 'package:flutter_widgets_pc_example/pages/demo/pull_down_menu_simple_page.dart';
import 'package:flutter_widgets_pc_example/pages/demo/pull_down_menu_sub_page.dart';
import 'package:flutter_widgets_pc_example/pages/demo/signature_pad_demo.dart';
import 'package:flutter_widgets_pc_example/pages/demo/swiper_demo_page.dart';
import 'package:flutter_widgets_pc_example/pages/demo/table_widget_demo.dart';
import 'package:flutter_widgets_pc_example/pages/demo/wrap_flow_page.dart';

import '../pages/demo/KqStepLineDemo.dart';
import '../pages/demo/button_demo_page.dart';
import '../pages/demo/chart/pie_chart_3d_demo.dart';
import '../pages/demo/custom_expand_view.dart';
import '../pages/demo/custom_view_page.dart';
import '../pages/demo/dialog_demo_page.dart';
import '../pages/demo/drag_grid_view_demo.dart';
import '../pages/demo/drag_list_view_demo.dart';
import '../pages/demo/drag_menu_demo.dart';
import '../pages/demo/editor_demo.dart';
import '../pages/demo/expand_list_demo_page.dart';
import '../pages/demo/file_picker_demo.dart';
import '../pages/demo/form_demo_page.dart';
import '../pages/demo/kq_chart_demo.dart';
import '../pages/demo/section_grid_view_demo.dart';
import '../pages/demo/section_list_view.dart';
import '../pages/demo/table_widget_demo2.dart';

class RouteMap {
  /// 路由配置
  static List<GetPage> getPages = [
    GetPage(name: '/ButtonDemo', page: () => const ButtonDemoPage()),
    GetPage(name: '/FormDemo', page: () => const FormDemoPage()),
    GetPage(name: '/ExpandListDemo', page: () => const ExpandListDemoPage()),
    GetPage(name: '/DialogDemo', page: () => const DialogDemoPage()),
    GetPage(name: '/CustomViews', page: () => const CustomViewsPage()),
    GetPage(
        name: KqGlobal.routerOfImagePreview,
        page: () => const ImgPreviewPage()),
    GetPage(
        name: KqGlobal.routerOfFilePreview,
        page: () => const FilePreviewPage()),
    GetPage(
        name: '/DragGridViewDemo', page: () => const DragGridViewDemoPage()),
    GetPage(name: '/DragDrawer', page: () => const DragDrawerDemo()),
    GetPage(
        name: '/DragListViewDemo', page: () => const DragListViewDemoPage()),
    GetPage(
        name: '/SectionGridViewDemo', page: () => const SectionGridViewDemo()),
    GetPage(name: '/SectionListView', page: () => const SectionListView()),
    GetPage(name: '/WrapFlowPage', page: () => const WrapFlowPage()),
    GetPage(name: '/PullDownMenuPage', page: () => const KqPullDownMenuPage()),
    GetPage(
        name: '/SubPullDownMenuPage',
        page: () => const KqSubPullDownMenuPage()),
    GetPage(
        name: '/PullDownMenuSimplePage',
        page: () => const KqPullDownMenuSimplePage()),
    GetPage(name: '/WrapFlowPage', page: () => const WrapFlowPage()),
    GetPage(name: '/KqChartLineDemo', page: () => const KqChartLineDemo()),
    GetPage(name: '/SignaturePadDemo', page: () => const SignaturePadDemo()),
    GetPage(name: '/KqTable', page: () => const TableDemoPage()),
    GetPage(name: '/KqTable2', page: () => const TableDemoPage2()),
    GetPage(name: '/KqSwiper', page: () => const SwiperDemoPage()),
    GetPage(
        name: '/KqBreadCrumbsDemo', page: () => const BreadCrumbsDemoPage()),
    GetPage(name: '/CustomExpandView', page: () => const CustomExpandView()),
    GetPage(name: '/chartPage', page: () => const ChartPage()),
    GetPage(name: '/chart/pieChart', page: () => const PieChartPage()),
    GetPage(name: '/chart/pieChart3D', page: () => const PieChart3DPage()),
    GetPage(name: '/FilePicker', page: () => const FilePickerPage()),
    GetPage(
        name: '/KqSelectableGridViewDemo',
        page: () => const KqSelectableGridViewDemo()),
    GetPage(name: '/KqDrawer', page: () => const KqDrawerDemo()),
    GetPage(name: '/KqStepLineDemo', page: () => const KqStepLineDemo()),
    GetPage(name: '/EditorDemo', page: () => const EditorDemo())
  ];

  /// 跳转按钮演示页面
  static pushButtonDemo() {
    Get.toNamed('/ButtonDemo');
  }

  goEditorDemo() {
    Get.toNamed('/EditorDemo');
  }

  /// 跳转表单演示页面
  static pushFormDemo() {
    Get.toNamed('/FormDemo');
  }

  /// 跳转折叠列表演示页面
  static pushExpandListDemo() {
    Get.toNamed('/ExpandListDemo');
  }

  /// 跳转对话框演示页面
  static pushDialogDemo() {
    Get.toNamed('/DialogDemo');
  }

  // 跳转wrapFlow演示页面
  static pushWrapFlowDemo() {
    Get.toNamed('/WrapFlowPage');
  }

  // 跳转下拉菜单演示页面
  static pushPullDownDemo() {
    Get.toNamed('/PullDownMenuPage');
  }

  // 跳转子下拉菜单演示页面
  static pushSubPullDownDemo() {
    Get.toNamed('/SubPullDownMenuPage');
  }

  // 跳转下拉菜单演示页面
  static pushPullDownSimpleDemo() {
    Get.toNamed('/PullDownMenuSimplePage');
  }

  /// 跳转自定义控件演示页面
  static pushCustomViewsPage() {
    Get.toNamed("/CustomViews");
  }

  /// 跳转自定义控件演示页面2
  static pushCustomExpandPage() {
    Get.toNamed("/CustomExpandView");
  }

  /// 跳转自定义控件演示页面
  static pushSignaturePadDemo() {
    Get.toNamed("/SignaturePadDemo");
  }

  /// 拖拽排序演示demo-网格
  static pushDragGridViewDemo() {
    Get.toNamed('/DragGridViewDemo');
  }

  /// 拖拽排序演示demo-列表
  static pushDragListViewDemoPage() {
    Get.toNamed('/DragListViewDemo');
  }

  /// 拖拽排序演示demo-仿小诸葛设备详情
  static pushDragDrawerDemo() {
    Get.toNamed('/DragDrawer');
  }

  /// TabBar演示demo
  static pushTabBarDemo() {
    Get.toNamed('/bodySmall');
  }

  static pusSectionGridViewDemo() {
    Get.toNamed('/SectionGridViewDemo');
  }

  ///折线图曲线图测试
  static pushKqChartLineDemo() {
    Get.toNamed('/KqChartLineDemo');
  }

  ///扇形图
  static pushKqChartPieDemo() {
    Get.toNamed('/KqChartPieDemo');
  }

  ///  跳转表格界面
  static pushTableDemo() {
    Get.toNamed('/KqTable');
  }

  /// 跳转面包屑界面
  static pushBreadCrumbsDemo() {
    Get.toNamed("/KqBreadCrumbsDemo");
  }

  /// 跳转文件选择
  static goFilePickerPage() {
    Get.toNamed("/FilePicker");
  }

  ///  跳转轮播图
  static pushSwiperDemo() {
    Get.toNamed('/KqSwiper');
  }

  ///  跳转表格界面
  static pusSectionListView() {
    Get.toNamed('/SectionListView');
  }

  ///  跳转到图表界面
  static pushChartPage() {
    Get.toNamed('/chartPage');
  }

  ///  跳转到饼状图界面
  static pushPieChartPage() {
    Get.toNamed('/chart/pieChart');
  }

  ///  跳转到3D饼状图界面
  static pushPieChart3DPage() {
    Get.toNamed('/chart/pieChart3D');
  }

  ///跳转可选择的gridView
  static pushKqSelectableGridView() {
    Get.toNamed('/KqSelectableGridViewDemo');
  }

  /// 抽屉
  static pushKqDrawer() {
    Get.toNamed('/KqDrawer');
  }

  static pushKqOverFlowBox() {
    Get.toNamed('/KqOverFlowBox');
  }

  /// 时间轴demo
  static pushKqStepLineDemo() {
    Get.toNamed('/KqStepLineDemo');
  }
}
